﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GimnasioTauro
{
    public partial class info_personal_empleado : Form
    {
        public info_personal_empleado()
        {
            InitializeComponent();
            pictureBox1.Image = Image.FromFile("C://Users//alulab11.INF//Desktop//Pantallas//GimnasioTauro//GimnasioTauro//res//user.png");
        }

        private void buttonModificar_Click(object sender, EventArgs e)
        {
            textBoxInfoDireccion.Enabled = true;
            textBoxInfoCorreo.Enabled = true;
            textBoxInfoTelefono.Enabled = true;
            buttonModificar.Visible = false;
            buttonGuardar.Visible = true;
        }

        private void buttonGuardar_Click(object sender, EventArgs e)
        {
            textBoxInfoDireccion.Enabled = false;
            textBoxInfoCorreo.Enabled = false;
            textBoxInfoTelefono.Enabled = false;
            buttonGuardar.Visible = false;
            buttonModificar.Visible = true;

            Confirmacion c1 = new Confirmacion("Sus datos se han guardado con exito");
            c1.Visible = true;
        }
    }
}
